home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.mactech.com 2010
/
ftp.mactech.com.tar
/
ftp.mactech.com
/
machack
/
Hacks97
/
WarriorsProgress.sit
/
Warrior’s Progress
/
source code
/
Source
/
Libraries
/
Views
/
SolidFrame.h
< prev
next >
Wrap
Text File
|
1997-06-28
|
944b
|
42 lines
// SolidFrame.h
#ifndef SolidFrame_h
#define SolidFrame_h
#ifndef Frame_h
#include "Frame.h"
#endif
#ifndef HasForegroundColor_h
#include "HasForegroundColor.h"
#endif
class SolidFrame: public Frame,
public HasForegroundColor
{
private:
virtual void ForegroundColorChanged();
public:
SolidFrame( uint16 thickness,
RGBColor theColor = NamedColors::black )
: Frame( Rectangle( -thickness, -thickness, thickness, thickness ) ),
HasForegroundColor( theColor )
{}
SolidFrame( PointObject thickness,
RGBColor theColor = NamedColors::black )
: Frame( Rectangle( -thickness.h, -thickness.v, thickness.h, thickness.v ) ),
HasForegroundColor( theColor )
{}
SolidFrame( Rectangle thickness,
RGBColor theColor = NamedColors::black )
: Frame( thickness ),
HasForegroundColor( theColor )
{}
virtual void DrawBorder( const ViewMap&, Rectangle interior ) const;
};
#endif